package com.linkhub.oms.admin.modules.stock.enums;

import com.linkhub.oms.common.enums.IEnumConvert;
import lombok.Getter;

@Getter
public enum ProductType implements IEnumConvert<String> {
    UNKNOW(0, "WZ", "未知"), // 主要用于在途场景
    GOOD(1,"ZP", "正品"),
    BAD(2,"CC", "残次品")
    ;
    private int value;
    private String code;
    private String desc;

    ProductType(int value, String code, String desc) {
        this.value = value;
        this.code = code;
        this.desc = desc;
    }

    @Override
    public String getCode() {
        return this.code;
    }
}
